package com.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.YishiEntity;
import com.entity.YonghuEntity;
import com.entity.view.WebsocketView;
import com.entity.view.YishiView;
import com.entity.view.YonghuView;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


public interface YishiDao extends BaseMapper<YishiEntity> {

    List<YishiEntity> selectListView(@Param("ew") Wrapper<YishiEntity> wrapper);

    List<YishiView> selectListView(Pagination page, @Param("ew") Wrapper<YishiEntity> wrapper);

    List<WebsocketView> selectUsernameByTable (@Param("username") List<String> username);


}
